package com.ruoyi.merchant.controller;

import com.ruoyi.merchant.service.LeaderService;
import com.ruoyi.merchant.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/leader")
public class LeaderController {
    @Autowired
    private LeaderService leaderService;

    @RequestMapping("/byId")
    public Result selectById(Integer uid){
        Result result = leaderService.selectById(uid);
        System.err.println("返回给前端的数据:"+result);
        return result;
    }
}
